<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<link rel="stylesheet" href="./css/estilo2.css" type="text/css" /> 

<html:html lang="true">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="./css/style.css" type="text/css" />
        <%@include file="cabecera.jsp" %>
        <title><bean:message key="welcome.title"/></title>
        <html:base/>
    </head>
    <body>
        <div class="contenedor">
            <h1>Buscar un cliente</h1>

            <logic:notEmpty name="msg">
                <bean:write name="msg" />
            </logic:notEmpty>

            <html:form action="/BuscarClienteAction" onsubmit="return(validateBuscarClienteForm(this));">
                <html:errors/>
                <html:javascript formName="BuscarClienteForm"/>
                <table>
                    <tr><td>DNI cliente</td><td><html:text property="dni"/></td></tr>
                    <html:hidden property="opcion" value='<%=request.getParameter("opcion")%>'/>
                    <tr><td colspan="2"><html:submit value="Buscar" /></td></tr>
                </table>
            </html:form>
            <html:link action="/RegistroAction">Dar de alta un Cliente</html:link><br/>
            <html:link action="/VolverMenuPersonal">Volver</html:link>
            </div>
        </body>
</html:html>